package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.util.TimeZone;

@EnableNeo4jRepositories("com.pepository.neo4j")
@EnableJpaRepositories("com.pepository.dao")
@EntityScan(basePackages = {"com.model.neo4j", "com.model.vo", "com.model"})
@EnableSwagger2
@SpringBootApplication
public class ServerApplication {

    public static void main(String[] args){
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(ServerApplication.class, args);
    }
}
